﻿using System.ComponentModel.DataAnnotations;
using Microsoft.Data.SqlClient;

namespace OnHook.Business.Dto.Bjl
{
    /// <summary>
    /// 创建Dto
    /// </summary>
    public class BjlCreateDto
    {
        /// <summary>
        /// 编码
        /// </summary>
        [Display(Name = "编码")]
        public long Code { get; set; } = EasyTool.TimestampUtil.GetCurrentTimestamp();

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }
        /// <summary>
        /// Z个数
        /// </summary>
        public int ZCount { get; set; } = 0;
        /// <summary>
        /// 闲个数
        /// </summary>
        public int XCount { get; set; } = 0;

        /// <summary>
        /// 庄最大连续数
        /// </summary>
        public int LZMax { get; set; } = 0;
        /// <summary>
        /// 闲最大连续数
        /// </summary>
        public int LXMax { get; set; } = 0;
        /// <summary>
        /// 明细
        /// </summary>
        public List<BjlCreateDetailDto> Details { get; set; } = [];
    }
}
